package priv.lirenhe.exam.B;

import java.util.Enumeration;
import java.util.Properties;

public class Example03 {

	public static void main(String[] args) {
		Properties props = System.getProperties();
		Enumeration enumNames = props.propertyNames();
		while(enumNames.hasMoreElements()){
			String name = (String)enumNames.nextElement();
			System.out.println(name + "=" +props.getProperty(name));
		}
		System.out.println("当前操作系统是："+props.getProperty("os.name"));
	}
}
